<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>operate</title>
<link href="css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
/**
 * 工作区适用大小
 */
function setCwinHeight(obj) {
  var cwin = obj;
  if (document.getElementById) {
    if (cwin && !window.opera){
      //if (cwin.contentDocument && cwin.contentDocument.body.offsetHeight) {
      //  cwin.style.height = cwin.contentDocument.body.offsetHeight; 
      //} else if(cwin.Document && cwin.Document.body.scrollHeight) {
      	//alert(document.documentElement.clientHeight);
        //cwin.style.height = cwin.Document.body.scrollHeight;
        cwin.style.height = (document.documentElement.clientHeight - 71 - 26 - 50) + 'px';
     // }
    }
  }
}

/** 
 * 添加最底下隐藏frame的src(不知道为什么直接在iframe中写为何不发请求，故不得已才添加onload事件)
 */
function testSrc() {
	document.getElementById('deamonFrame').src = 'login!operateHidden.do';
} 
</script>
</head>
<body onload="testSrc();">
<div>
<div class="head">
<div class="logo"><a href="#"><img src="images/login/logo.jpg" border="0"/></a></div>
  <div class="nav">
  <a href="login!operateRight.do" target="operateRight">首页</a>
  </div>
</div>
<!--head end-->

<!--top begin-->
<div class="top">
  <div class="wel">王伟你好欢迎!</div>
  <div class="tel">电话：021-63254231</div>
</div>
<!--top end-->

<!-- 主体区域 begin -->
<div id="mainFrameId" style="height:auto;display:block;">
	<iframe name="mainFrame" style="height:460px; width:100%;" id="mainFrame" border="0" frameborder="0" src="login!operateFrameset.do" onload="setCwinHeight(this);"></iframe>
</div>
<!-- 主体区域 end -->

<!-- 底部 begin -->
<div class="clear"></div>
<div class="footer">
  <a href="#">关于我们</a>
</div>   
<!-- 底部 end -->

<!-- 隐藏iframe begin -->
<div id="deamonFrameId" style="height:auto;display:none;">
	<iframe name="deamonFrame" id="deamonFrame" border="0" frameborder="0" src="login!operateHidden.do" style=""></iframe>
</div>
<!-- 隐藏iframe end -->
</div>
</body>
</html>